home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia 1995 April / Informatica Multimedia CD - Epimundo.iso / DOS / FILE_CHG / DISKED.ZIP / DISKED.DOC < prev   
Encoding:
Text File  |  1986-08-15  |  21.6 KB  |  421 lines

  1.  
  2.                                        DISKED
  3.                                   DISKETTE EDITOR
  4.                                     (Release 1)
  5.  
  6.       Diskette Editor is a program that I wrote because I needed it.  It
  7.       basically is a sector editing program but could be used as just a
  8.       "snooping" device.  Unlike many others, it can read the "special"
  9.       sectors that various programs use in their copy protection schemes.
  10.       Diskette Editor is more of a tool, than a utility, for example, using
  11.       it you can undelete files like many utilities, except it is not
  12.       automatic; but this gives you more power.
  13.  
  14.       STARTING UP THE PROGRAM
  15.  
  16.       Diskette Editor is started by typing DISKED at the DOS prompt.  No
  17.       command line arguments are used.  The screen that comes up after
  18.       loading, is Diskette Editor's only screen.  The screen has a great deal
  19.       of information on it.  (Note: All the numbers displayed and inputted in
  20.       Diskette Editor, and the numbers in this manual, are in hexadecimal
  21.       unless otherwise specified).
  22.  
  23.       GENERAL INFORMATION ON THE SECTOR EDITING SCREEN
  24.  
  25.       Diskette Editor's main screen has a lot of information on it, but it is
  26.       organized in an efficient way.  The screen is comprised of two colors.
  27.       The colors vary according to the type of monitor you have, but one of
  28.       the colors is bright and the other is dim.  The brighter color is the
  29.       highlight color.  The highlight shows what key to press for what
  30.       function.  For instance, the command "Verify" has the "V" in the
  31.       highlight color which signifies that it is executed by pressing the "V"
  32.       key.  Also, "Mask" has the "k" in highlight which shows "k" is pressed.
  33.       From now on, the highlighted key will be written in between "[" and
  34.       "]", so in the above examples, the verify command would be [V]erify,
  35.       and the mask command would be Mas[k].
  36.  
  37.       To execute the commands the depression of the shift key is not
  38.       necessary, but allowed.  For most of the cases this will seem natural
  39.       to you, but in others it is different from what you might expect.  An
  40.       illustration of one of these cases would be pressing the period key for
  41.       the [>] command.  This was done as a convenience.
  42.  
  43.       OVERVIEW OF THE SECTOR EDITING SCREEN
  44.  
  45.       The most noticeable part of the screen are the two windows.  When the
  46.       program first starts they are both blank except for a copyright notice
  47.       in the left window.  When a sector is read in from a diskette, its data
  48.       is displayed in these two windows.  The one on the left side of the
  49.       screen (labeled "[H]exadecimal") displays the data in hexadecimal
  50.       bytes.  The window on the right (labeled "[A]SC II") is the same data
  51.       in its corresponding ASC II (text) form.  Exotic characters (not
  52.       alphabetic, numerical, or punctuation marks) are displayed as periods.
  53.       (To change this, see the Mas[k] command in COMMANDS OVERVIEW).
  54.  
  55.       The bottom-most line contains information on the current drive, side,
  56.       track number, sector number, and sector size (in decimal).  The two
  57.       lines above the bottom-most line, contain a list of available commands
  58.       in the highlighted form.  For a description of the use of these
  59.       commands, see the COMMANDS OVERVIEW section.  The line above those is
  60.       the status line.  Most of the messages to you from Diskette Editor are
  61.       displayed here.
  62.  
  63.       EDITING SECTOR DATA
  64.  
  65.       Before you can edit a sector, you must first read the data in from a
  66.       diskette.  The [R]ead command does this.  It reads one sector from the
  67.       current drive, side, and track.  The windows are then filled with the
  68.       data read from the diskette.  When you first run Diskette Editor, the
  69.       sector data buffer is filled with zeros, the current drive is A, the
  70.       current side is 0, the current track is 00, and the current sector
  71.       number is 01.  This is the diskette's boot record which is read by the
  72.       BIOS during a reboot.
  73.  
  74.       The default mode when Diskette Editor is started is hexadecimal.  (This
  75.       is changed with the [H]exadecimal and [A]SC II commands).  A pointer
  76.       highlights the current byte in the data, either the hexadecimal or the
  77.       ASC II.  The four arrow keys on the numeric keypad move it in the
  78.       indicated directions.  If you move the cursor into one of the four
  79.       sides, the window will scroll, or the pointer will wrap, if there is
  80.       more data in that direction.  The [Home] key moves the pointer to the
  81.       first byte of the first page, and the [End] key moves the pointer to
  82.       the last byte of the last page.  The [PgUp] key displays the previous
  83.       page of data, if one exists, and the [PgDn] key displays the next page
  84.  
  85.                                   DISKED  page 2
  86.  
  87.  
  88.       of data, again if one exists.
  89.  
  90.       The two windows fit 256 bytes of data (one page).  A normal diskette
  91.       sector is 512 bytes so there are two pages.  Using the keys mentioned
  92.       in the above paragraph, it is possible to view all the data in a
  93.       sector.  Instead of using the [PgDn] key, you could press the cursor
  94.       down key in the numeric keypad 16 times but the [PgDn] key is
  95.       perceptibly faster.
  96.  
  97.       To change a byte use the [M]odify command.  (The space bar also
  98.       activates the modify command).  This lets you change the byte being
  99.       highlighted by the pointer.  If you are in the hexadecimal mode, type
  100.       in a new hexadecimal value; if in the ASC II mode, type the character
  101.       to replace the highlighted.  After a byte is modified the pointer is
  102.       moved automatically to the next byte.  To modify the next one you must
  103.       either press the space bar or [M]odify.
  104.  
  105.       All the modifications that you make are to the sector data stored in
  106.       the computer's memory, not the actual sector on the diskette.  To save
  107.       the changes that you made, use the [W]rite sector command.  Be very
  108.       careful when writing to the diskette!
  109.  
  110.       That is all that is required to know for basic diskette editing.  But
  111.       there is much more to Diskette Editor--read on!
  112.  
  113.       SCANNING A DISKETTE
  114.  
  115.       When a diskette is formatted, 40 (decimal) tracks are laid out on it.
  116.       They are numbered from 00 to 27 (hexadecimal).  Within each track there
  117.       are sectors.  In the earlier versions of DOS (1.x) there were only 08
  118.       sectors in each track.  With the later versions there are 09.
  119.       Diskettes also have two sides (unless you have one of the older
  120.       single-sided diskette drives) which are numbered 00 and 01.  Some
  121.       software comes on single-side diskettes which means that only one side
  122.       of the diskette is being used.
  123.  
  124.       The above paragraph describes an ordinary diskette.  But there are many
  125.       "copy protection" schemes that entail using abnormal formats.  A number
  126.       of things can easily be done to copy protect a program.  Giving sectors
  127.       weird numbers is popular.  The sector numbers can range from 00 to FF.
  128.       Adding an extra track is also commonly done.  Sector sizes can also be
  129.       changed from 512 to 128, 256, or 1024 bytes (decimal).  But the most
  130.       popular of all these tricks is a combination of them.  DOS (all
  131.       versions) expects there to be 40 (decimal) tracks of 08, or 09, sectors
  132.       of 512 (decimal) bytes.  If this is not so, it reports a read error and
  133.       no data is transferred.  When DISKCOPY copys a disk, it produces a
  134.       normally formatted diskette.  When the "copy protected" program first
  135.       runs, it checks to see if the diskette it was loaded off of has the
  136.       extraordinary format, if not it was a DISKCOPYed copy so it aborts.
  137.  
  138.       The Sca[n] command is used to find these abnormal formats.  When its
  139.       window opens, it asks you the starting track.  Enter the desired track
  140.       number to start on or 00 to start with the first.  It then asks you for
  141.       the ending track.  Enter it or 27 for the last.  Next comes the lowest
  142.       sector number to search for, then the highest.  Diskette Editor's scan
  143.       command will the proceed to look, starting from the starting track, for
  144.       all the sectors of any size in the range entered for the sector
  145.       numbers, to the ending track, reporting anything it finds.  To read in
  146.       an unusually sized sector, see the BYTES PER SECTOR option under
  147.       DISKETTE PARAMETER TABLE.
  148.  
  149.       DISKETTE PARAMETER TABLE
  150.  
  151.       Between the two windows there is the diskette parameter table and it is
  152.       labeled as so.  This table controls how the diskette drives will act.
  153.       Most of the values in the table should not be changed unless you know
  154.       what you are doing.  But there are a couple that will be very helpful.
  155.       Here is the table:
  156.  
  157.                            Diskette Parameter Table
  158.        Byte #  Default Value       Description
  159.             0    DF              1st nibble stop rate for drive head
  160.                                  2nd nibble disk head unload time
  161.             1    02              1st nibble disk head load time
  162.                                  2nd nibble DMA mode select
  163.             2    25              Wait time before motor off
  164.            *3    02              Bytes per sector
  165.            *4    09              Highest sector number on track
  166.  
  167.  
  168.                                   DISKED  page 3
  169.  
  170.             5    2A              Gap length between sectors
  171.             6    FF              Data length value
  172.             7    50              Formatting gap length
  173.             8    F6              Formatting fill byte
  174.             9    00              Head settle time
  175.            10    02              Motor start delay
  176.  
  177.       Only table values with asterisks should be modified unless you are
  178.       familiar with diskette drive operations (i.e. you understand the
  179.       descriptions) otherwise you can damage your diskette drives.  Two
  180.       things you should note are some of the default values vary with DOS,
  181.       and in Diskette Editor the descriptions are abbreviated.
  182.  
  183.       To modify a value in the table, press the highlighted number next to
  184.       the one you want.  The last option does not have a "10" next to it,
  185.       instead it has an "X".  To modify it press the [X] key.  The original
  186.       table is restored when you exit from Diskette Editor.
  187.  
  188.       BYTES PER SECTOR (3) -- this is the one you will want to play around
  189.       with the most.  Changing this will enable you to read in some "copy
  190.       protected" sectors.  This controls the number of bytes per sector.  If
  191.       you enter a 00 there is 128 bytes per sector, a 01 there are 256 bytes
  192.       per sector, a 02 (normal) there are 512 bytes per sector, or a 03 1024
  193.       bytes per sector.  Any other number is invalid, but Diskette Editor
  194.       will not warn you of this.  To find out how to locate unusual sized
  195.       sectors, see the Sca[n] command.  To read an abnormally sized sector
  196.       reported by the Sca[n] command, the current sector size must match the
  197.       size revealed.  To find out how to create your own unusual sized
  198.       sectors, see the [F]ormat command.
  199.  
  200.       HIGHEST SECTOR NUMBER ON TRACK (4) -- this is used by Diskette Editor's
  201.       [+] and [-] (see below) commands.  It controls when the current sector
  202.       number will wrap back to a 01.  Under DOS 1.x the default value is 08
  203.       (8 sectors per track), and under DOS 2.x and 3.x it is a 09 (9 sectors
  204.       per track).
  205.  
  206.       COMMANDS OVERVIEW
  207.  
  208.       [ESC]--cancels a command or input at any time.
  209.  
  210.       [H]exadecimal--switches the current mode to hexadecimal.  The
  211.          highlighted cursor will move to the left window if it was in the
  212.          right. [M]odifications will be in hexadecimal.
  213.  
  214.       [A]SC II--switches the current mode to ASC II (text mode).  The
  215.          highlighted cursor will move to the right window if it was in the
  216.          left. [M]odifications will be in ASC II.
  217.  
  218.       [M]odify--lets you change the byte being highlighted by the pointer.
  219.          If the mode is ASC II, type the appropriate character otherwise type
  220.          in the desired hexadecimal value.
  221.  
  222.       [R]ead--reads in the current sector.  The information line
  223.          (bottom-most) tells where the current sector is located.
  224.  
  225.       [W]rite--writes the sector data stored in the computer's memory to the
  226.          diskette.  Be careful to write the sector to the same place you read
  227.          it from unless you are specifically copying the data.  A yes/no
  228.          warning is given before the data is written.
  229.  
  230.       [V]erify--verifies that the current sector is readable.  The sector
  231.          data is not transferred to the sector data buffer in the computer's
  232.          memory.
  233.  
  234.       [D]rive--toggles between drive A and drive B. Note: Diskette Editor
  235.          does not support a hard disk, so the drives are limited to A and B.
  236.  
  237.       [T]rack--allows you to type in a track number for the current track.
  238.          If Auto-Read is on, the current sector is read from the new track.
  239.          Entering a track number greater than 27 results in a warning with an
  240.          "Are you sure?"
  241.  
  242.       [S]ector--allows you to enter a new sector number for the current
  243.          sector number.  Valid sectors numbers are from 00 to FF, although
  244.          normal sector numbers range from 01 to 09.  If Auto-Read is on, the
  245.          new sector is read.
  246.  
  247.  
  248.  
  249.  
  250.  
  251.                                   DISKED  page 4
  252.  
  253.       [+]--the plus key increments the current sector number by one and reads
  254.          it from the diskette if auto-read is on (see A[u]to Read).  If the
  255.          current sector number is the highest sector number on the track,
  256.          then the current sector number will be 01.  (To change the highest
  257.          value see HIGHEST SECTOR NUMBER ON TRACK under the DISKETTE
  258.          PARAMETER TABLE section).
  259.  
  260.       [-]--the minus key decrements the current sector number by one and
  261.          reads it from the diskette if auto-read is on.  If the current
  262.          sector number is 01, the current sector number becomes the highest
  263.          sector number on the track.
  264.  
  265.       [<]--the less than sign key decrements the current track number by one
  266.          and reads in the current sector off of the new track if auto-read is
  267.          on.  If the current track was 01, the current track becomes 27.
  268.  
  269.       [>]--the greater than sign key increments the current track number by
  270.          one and reads in the current sector off of the new track if
  271.          auto-read is on.  If the current track was 27, the current track
  272.          becomes 01.
  273.  
  274.       S[i]de--flips the side of the diskette being edited.  If Auto- Read is
  275.          on, the sector from the opposite side is read.
  276.  
  277.       A[u]to Read--toggles Auto-Read on/off.  If Auto-Read is ON, all
  278.          commands that change the position of the current sector ([+], [-],
  279.          [T]rack, etc.) will automatically read in the resulting sector.  The
  280.          default value is ON.
  281.  
  282.       Clr Key Buffer[:]--(Clear keyboard type-ahead buffer)--toggles the
  283.          flushing of the keyboard type ahead-buffer on/off.  If OFF,
  284.          characters may be typed before a prompt for them is given.  If ON,
  285.          those characters are flushed.
  286.  
  287.       [ALT-R]--[hold ALTERNATE key then press "R"]--Resets the disk system.
  288.          This command should ordinarily not be needed.
  289.  
  290.       [F9]--changes the highlight text color.
  291.  
  292.       [F10]--changes the normal text color.
  293.  
  294.       Mas[k]--controls the ASC II display.  Normally non-text characters are
  295.          displayed as periods.  Diskette Editor determines if a character is
  296.          a valid text character by checking to see if it is above a low value
  297.          and if it is below a high value.  Mas[k] lets you change these high
  298.          and low values.  (Low value of 00 and a high value of FF disables
  299.          the character masking).  After you change the lower and upper
  300.          bounds, you then can modify the character used as the mask
  301.          character.  (Normally a period).
  302.  
  303.       Fil[l]--fills the sector data buffer with a specified byte.  This does
  304.          not change the sector on the diskette unless you use the [W]rite
  305.          command.
  306.  
  307.       S[e]arch--searches a user specified range on the diskette for a pattern
  308.          of hexadecimal or ASC II (text) data.  Enter the data in either
  309.          hexadecimal or ASC II (as you indicate).  Then enter the starting
  310.          and ending track and sector numbers.  Diskette Editor will then ask
  311.          if you want to search both sides, meaning side 0 and side 1 of the
  312.          diskette.
  313.  
  314.       To Diskette Editor a match is when the data is exactly the same.  So
  315.       "Are you sure?" does not match "ARE YOU SURE?"  There is one case when
  316.       Diskette Editor treats a partial match as a whole match.  This is when
  317.       Diskette Editor is scanning the edge of the sector data buffer.  If you
  318.       have it search for "password" and at the end of its buffer there is
  319.       "passw" a match would be found.  Quite often, a sector ends with the
  320.       same byte as the data you are searching for begins.  Diskette Editor
  321.       treats this also as a match, although it might not be.  Be wary when a
  322.       match occurs at offset 1FF (for a sector size of 512 bytes).
  323.  
  324.       When a match is found, you have the option of searching for the next
  325.       occurrence of the search data, or view the data previously found.  To
  326.       view the matched data just found, press the ESC key, otherwise press
  327.       any other key to continue the search.
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                   DISKED  page 5
  335.  
  336.       WARNING WARNING --POTENTIALLY DANGEROUS COMMAND-- WARNING WARNING
  337.                                       \/
  338.  
  339.       [F]ormat--formats the current track to your specifications.  (For a
  340.          complete description of a diskette see SCANNING A DISKETTE above).
  341.          The drive and track number that will be formatted are displayed.
  342.          You are then asked for the number of sectors on the track.  This can
  343.          range from 01 to FF, but only low numbers will actually work; if the
  344.          number is too big the sectors will overlap on the track.
  345.  
  346.          Diskette Editor will then ask information about each sector.  The
  347.          sectors are stored sequentially on the track, but the they can be
  348.          called by any number desired.  Diskette Editor displays the physical
  349.          sector number and asks what logical sector number you want it
  350.          called.  The logical number can range from 00 to FF.  In DOS 1.x,
  351.          there are 8 sectors per track and they number from 01 to 08.  In DOS
  352.          2.x and 3.x there are 9 sectors per track and they number from 01 to
  353.          09.  If you give your sectors any other numbers DOS will be unable
  354.          to read them.  This is used in some "copy-protection" schemes.
  355.  
  356.          Diskette Editor will ask you the size of the sector.  The sector
  357.          can be 128, 256, 512, or 1024 bytes in length.  Normally sectors are
  358.          512 bytes.  When prompted, enter a 0 for 128 bytes, a 1 for 256
  359.          bytes, a 2 for 512 bytes, or a 3 for 1024 bytes.  This is another
  360.          "copy-protection" method used by some companies.  Most often a
  361.          combination of weird sector numbers and sizes are used.  (See the
  362.          Sca[n] command to find out if a track contains any of these weird
  363.          combinations).
  364.  
  365.          After all the information about the track is entered, a final yes/no
  366.          warning message is displayed.  If you answer yes, the track is
  367.          formatted.  This DESTROYS ALL THE DATA that was on that track.  Be
  368.          very, very careful with this command.  I recommend that you never
  369.          use this command unless you have a good reason to.
  370.  
  371.       Sca[n]--see SCAN A DISKETTE above for a complete description of the
  372.          Sca[n] command and disk formats.
  373.  
  374.       [C]onvert--converts, for your convenience, a number from either
  375.          hexadecimal or decimal to its equivalent hexadecimal or decimal form
  376.          on the display.
  377.  
  378.       [Q]uit--exits Diskette Editor.
  379.  
  380.       Diskette Editor warns you before it does anything potentially
  381.       dangerous, but be very careful when you use it; you can accidentally
  382.       lose an entire diskette's data.
  383.  
  384.       Diskette Editor belongs to the U.S.S. crowd.  (User Supported
  385.       Software).  You are given a trial period of two weeks in which you can
  386.       use it at no cost.  If you use it after the trial period you must
  387.       register your copy for $30.00.  If you register or not you are
  388.       encouraged to distribute copies of Diskette Editor as long as there is
  389.       not a disk fee of more than $10.00.  My name and address for
  390.       registration, comments, or bug reports is:
  391.  
  392.                Paul Troiano
  393.                531 Village Road West
  394.                Princeton Jct, NJ 08550
  395.  
  396.       Diskette Editor has no warranty implied or expressed.  In no event will
  397.       the author be held liable for damages caused by the use of this
  398.       program.
  399.  
  400.  
  401.          ------------------------------------------------------------
  402.  
  403.                    This disk copy provided as a service of
  404.  
  405.                         The Public (Software) Library
  406.  
  407.                            the software library of
  408.                      The Houston Area League of PC Users
  409.  
  410.  
  411.          For a copy of the latest monthly software library newsletter
  412.           and a list of the 600+ disks in the library, call or write
  413.  
  414.                         The Public (Software) Library
  415.                                 P.O.Box 35705
  416.                            Houston, TX 77235-5705
  417.                                (713) 721-6104
  418.  
  419.             Newsletter subscriptions are available for $12 a year.
  420.  
  421.